﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace VsxFactory.Modeling.StrategyManager.Dialog
{
    internal static class MessageHelper
    {

        public static void ShowErrorMessage(Exception exception)
        {
            MessageBox.Show(
                (exception.InnerException ?? exception).Message,
                "Error",
                MessageBoxButton.OK,
                MessageBoxImage.Error);
        }

        public static void ShowWarningMessage(string message)
        {
            ShowWarningMessage(message, "Warning");
        }

        public static void ShowWarningMessage(string message, string title)
        {
            MessageBox.Show(
                message,
                title,
                MessageBoxButton.OK,
                MessageBoxImage.Warning);
        }

    }

}
